import os
from datetime import timedelta

class Config:
    # Flask
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev-key-please-change-in-production'
    
    # Game
    GAME_URL = 'https://game.sprunki-incredibox.org/sprunki/sprunki-phase-3.html'
    
    # Internationalization
    LANGUAGES = ['en', 'zh', 'ja', 'ko', 'fr', 'de']
    BABEL_DEFAULT_LOCALE = 'en'
    BABEL_TRANSLATION_DIRECTORIES = 'app/translations'
    
    # MongoDB
    MONGO_URI = os.environ.get('MONGO_URI') or 'mongodb://localhost:2641/sprunki'
    
    # Session
    PERMANENT_SESSION_LIFETIME = timedelta(days=7)
    
    # Security
    WTF_CSRF_ENABLED = True
    
    # Debug
    DEBUG = os.environ.get('FLASK_ENV') == 'development'
    
    # 其他配置项... 